//
//  BHPhotoBrowserCell.m
//  Behing
//
//  Created by Lj on 2017/10/23.
//  Copyright © 2017年 lj. All rights reserved.
//

#import "BHPhotoBrowserCell.h"

@implementation BHPhotoBrowserCell

- (id)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setUpUI];
    }
    return self;
}

- (void)setUpUI {
    CGRect rect = self.bounds;
    rect.size.width -= 10;
    rect.origin.x = 5;
    self.photoBrowser = [[BHBrowserImageView alloc]initWithFrame:rect];
    self.photoBrowser.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
    [self.contentView addSubview:self.photoBrowser];
}

- (void)layoutSubviews {
    _photoBrowser.zoomScale = 1.0;
    _photoBrowser.contentSize = _photoBrowser.bounds.size;
}

@end
